package com.test.springboot.controller;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;

import org.junit.Test;

import java.util.Arrays;
import java.util.Scanner;

public class Controller {
        @Test
            public void testSign(){
            String data = "{\"output\":{\"epcinfo\":{\"epc_id\":\"20220705600162\",\"psn_no\":\"\",\"psn_cert_type\":\"01\",\"certno\":\"\",\"insutype\":\"\",\"org_med_type\":\"11\",\"org_mdtrt_id\":\"345106109\",\"dscg_main_dise_codg\":\" L03.003 \",\"dscg_main_dise_name\":\"甲沟炎\",\"dise_no\":\"\",\"dise_name\":\"\",\"dept_codg\":\"207\",\"dept_name\":\"胸外科\",\"begin_time\":\"2022-07-05 10:27:44\",\"end_time\":\"2022-07-06 00:00:00\",\"chfpdr_code\":\"0196\",\"crter_chfpdr_name\":\"\",\"crter_chfpdr_certno\":null,\"epc_sort\":\"2\",\"epc_type\":\"1\",\"medrcdno\":\"\",\"diag_dscr\":\"\",\"main_cond_dscr\":\"\",\"tcmdrug_used_way\":\"\",\"tcmdrug_cnt\":null,\"review_name\":\"\",\"adjust_name\":\"\",\"check_name\":null,\"expContent\":null,\"can_use_cnt\":1,\"use_time\":\"2022-07-05 10:27:44\",\"fixmedins_code\":\"H13052800362\",\"fixmedins_name\":\"\",\"use_fixmedins_code\":null,\"use_fixmedins_name\":null,\"mdtrt_id\":null,\"setl_id\":null,\"use_flag\":\"0\"},\"epclist\":[{\"regName\":\"环孢素软胶囊\",\"prodname\":\"环孢素软胶囊\",\"spec\":\"25mg*50\",\"sin_dos_dscr\":null,\"usedFrquDscr\":\"每日三次\",\"cnt\":39.0000,\"dosformName\":\"胶囊\",\"use_time\":null,\"mdtrt_id\":null,\"setl_id\":null,\"use_fixmedins_code\":null,\"use_fixmedins_name\":null,\"expContent\":null}]},\"infcode\":0,\"inf_refmsgid\":\"130499202207072236180012751570\",\"refmsg_time\":\"20220707223618\",\"respond_time\":\"20220707223618\",\"err_msg\":null,\"warn_msg\":null,\"signtype\":null,\"cainfo\":null}";


//            JSONObject jsonObject = JSONObject.parseObject(data);
            JSONObject jsonObject = JSON.parseObject(data);
            System.out.println(jsonObject);
//                JSONObject result = jsonObject.getJSONObject("result");
//                 System.out.println(result);
//                JSONObject chargePriceList = result.getJSONObject("chargePriceList");
//                 System.out.println(chargePriceList);
//                Object shopPayPrice = chargePriceList.get("shopPayPrice");
//                System.out.println(shopPayPrice);//1200
            }

    public static void main(String[] args) {

    }
    @Test
    public void test1() {
            String str = "{\n" +
                    "\t\"msgCode\": \"0\",\n" +
                    "\t\"msg\": \"成功\",\n" +
                    "\t\"data\": {\n" +
                    "\t\t\"total\": 321,\n" +
                    "\t\t\"list\": [{\n" +
                    "\t\t\t\"taskId\": \"fc4c2b3e7e2c400d81f0eae63f15a4ab\",\n" +
                    "\t\t\t\"recordId\": \"f4daf944-2bdf-4bc8-8962-40dbd1afd786\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:08\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095609049_1_316_ipcc_shtp_asr-8kHz-aff95840b49c11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095609049_1_316_ipcc_shtp_asr-8kHz-aff95840b49c11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:22\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"6adcf44f2fdf4e3fb2ce93a8eaec87de\",\n" +
                    "\t\t\t\"recordId\": \"b4d12c20-8b19-4095-a78a-509d0733c88b\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:09\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095704682_1_317_ipcc_shtp_asr-8kHz-d1202b66b49c11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095704682_1_317_ipcc_shtp_asr-8kHz-d1202b66b49c11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:20\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"da3213defd7c4a9e9a49880bfe09b601\",\n" +
                    "\t\t\t\"recordId\": \"29529ea1-3868-463c-9b88-9f077927be3e\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:10\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095704682_1_317_ipcc_shtp_asr-8kHz-d1202b66b49c11e8[2].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095704682_1_317_ipcc_shtp_asr-8kHz-d1202b66b49c11e8[2].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:16\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"b9f2bcf2970b40cea82007ba450eaa7c\",\n" +
                    "\t\t\t\"recordId\": \"e1b355f9-fc1a-4920-a20f-684cd2145d7c\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:11\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095837911_1_318_ipcc_shtp_asr-8kHz-08b06f50b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095837911_1_318_ipcc_shtp_asr-8kHz-08b06f50b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:16\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"f342876995a9480490067818238aaf13\",\n" +
                    "\t\t\t\"recordId\": \"c53a7808-4281-4731-91f8-39f1d23ca0fe\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:11\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095837911_1_318_ipcc_shtp_asr-8kHz-08b06f50b49d11e8[2].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095837911_1_318_ipcc_shtp_asr-8kHz-08b06f50b49d11e8[2].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:06\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"e85abd8bf8fc4a84beb39f8e324dce28\",\n" +
                    "\t\t\t\"recordId\": \"dc620476-ef9b-4119-afb0-26d43b5849cf\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:12\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095839670_1_319_ipcc_shtp_asr-8kHz-09c0011cb49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095839670_1_319_ipcc_shtp_asr-8kHz-09c0011cb49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:21\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"de9a2a7a34da45b1b8383ca7e2ad2c42\",\n" +
                    "\t\t\t\"recordId\": \"e2032d7a-8826-46e5-9e60-303d9e9e1856\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:13\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095915418_1_320_ipcc_shtp_asr-8kHz-1f0d7e50b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095915418_1_320_ipcc_shtp_asr-8kHz-1f0d7e50b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:15\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"459e73e5812d46589686c9bde6287eac\",\n" +
                    "\t\t\t\"recordId\": \"a6573fac-4bd9-4365-a776-a216c8f94629\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:14\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095918387_1_321_ipcc_shtp_asr-8kHz-20d5be32b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095918387_1_321_ipcc_shtp_asr-8kHz-20d5be32b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:14\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"4dd84231684640c8bf0bea4a7392735d\",\n" +
                    "\t\t\t\"recordId\": \"1bf3c3ca-2f1d-424a-8ca3-f9b789518d90\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:15\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910095918387_1_321_ipcc_shtp_asr-8kHz-20d5be32b49d11e8[2].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910095918387_1_321_ipcc_shtp_asr-8kHz-20d5be32b49d11e8[2].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:09\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}, {\n" +
                    "\t\t\t\"taskId\": \"f705b3b1a35b4bf1b7d368f6722d4a22\",\n" +
                    "\t\t\t\"recordId\": \"00c2d521-825c-4484-8dea-84c3ebe8bfd8\",\n" +
                    "\t\t\t\"distributeTime\": \"2019-01-30 11:37:16\",\n" +
                    "\t\t\t\"taskName\": \"20190130task1\",\n" +
                    "\t\t\t\"bizName\": \"智能面试\",\n" +
                    "\t\t\t\"wavFilename\": \"20180910100007298_1_322_ipcc_shtp_asr-8kHz-3df9e268b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordSource\": \"/nfsc/csp_nas_8821_id008821_vol1002_stg/eim-sm/RECORD/zhinengmianshi/20190130/20180910100007298_1_322_ipcc_shtp_asr-8kHz-3df9e268b49d11e8[1].wav\",\n" +
                    "\t\t\t\"recordDuration\": \"00:00:11\",\n" +
                    "\t\t\t\"statusName\": null,\n" +
                    "\t\t\t\"markStartTime\": null,\n" +
                    "\t\t\t\"markEndTime\": null,\n" +
                    "\t\t\t\"markReceiveTime\": null,\n" +
                    "\t\t\t\"marker\": null,\n" +
                    "\t\t\t\"userFlag\": null,\n" +
                    "\t\t\t\"back\": false\n" +
                    "\t\t}],\n" +
                    "\t\t\"pageNum\": 1,\n" +
                    "\t\t\"pageSize\": 10,\n" +
                    "\t\t\"size\": 10,\n" +
                    "\t\t\"startRow\": 1,\n" +
                    "\t\t\"endRow\": 10,\n" +
                    "\t\t\"pages\": 33,\n" +
                    "\t\t\"prePage\": 0,\n" +
                    "\t\t\"nextPage\": 2,\n" +
                    "\t\t\"isFirstPage\": true,\n" +
                    "\t\t\"isLastPage\": false,\n" +
                    "\t\t\"hasPreviousPage\": false,\n" +
                    "\t\t\"hasNextPage\": true,\n" +
                    "\t\t\"navigatePages\": 8,\n" +
                    "\t\t\"navigatepageNums\": [1, 2, 3, 4, 5, 6, 7, 8],\n" +
                    "\t\t\"navigateFirstPage\": 1,\n" +
                    "\t\t\"navigateLastPage\": 8,\n" +
                    "\t\t\"firstPage\": 1,\n" +
                    "\t\t\"lastPage\": 8\n" +
                    "\t}\n" +
                    "}";

        Object obj = JSONObject.parseObject(str).getJSONObject("data").get("list");
        System.out.println(obj);


    }

}
